package com.chixing.Homework;

public class Demo {
    int a=1;
    static int b=1;

    public Demo(){
        a++;
        b++;
    }
    public Demo(int c){
        this.a=this.a+c;
        this.b=this.b+c;
    }

    public static void main(String[] args) {
        Demo t1=new Demo();
        Demo t2=new Demo(2);
        System.out.println(t1.a);
        System.out.println(t1.b);
        System.out.println(t2.a);
        System.out.println(t2.b);
    }
}
